package com.huxun.service.Impl;

import com.huxun.bean.Item;
import com.huxun.mapper.ItemMapper;
import com.huxun.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemServiceImpl implements ItemService {
    @Autowired
    ItemMapper itemMapper;
    @Override
    public int addItem(Item item) {
        return itemMapper.addItem(item);
    }

    @Override
    public List<Item> findItems(int oid) {
        return itemMapper.findItems(oid);
    }
}
